import React from 'react';
import Router from './router';
import { ConfigProvider } from 'antd';
import { useSelector } from 'react-redux';
import zhCN from 'antd/es/locale/zh_CN';
import './styles/base.scss';

const App: React.FC = () => {
  const { size } = useSelector((state: any) => state.global);
  return (
    <ConfigProvider componentSize={size} locale={zhCN}>
      <Router />
    </ConfigProvider>
  );
}

export default App;
